var app = new Vue({
	el: '#wrapper',
	data: {
		//系统模块全称
		moduleFullName: "adminLTE-MVC",
		//菜单收缩后的简称
		moduleSimpleName: "MVC",
		//默认菜单的搜索值
		search_menuName: "",
		//菜单列表
		menuList: [],
		//当前用户登录信息
		userInfo: {
			userImagePath: "../adminLTE/dist/img/user2-160x160.jpg",
			userNickName: "panmingzhi815",
			userDepartment: "开发部"
		}
	},
	//后台管理界面启动后首次执行的数据加载事件
	mounted: function() {
		this.searchMenu();
		$('#tabs').addtabs({ iframeHeight: $(".content-wrapper").height() - $(".nav-tabs").height() - 10 });
	},
	methods: {
		//按条件加载搜索菜单
		searchMenu: function() {
			var self = this;
			this.$http.get('../data/menuList.json?menuName='+this.search_menuName).then(function(response) {
				self.menuList = response.data;
			}, function() {
				alert("加载菜单失败，请尝试重新刷新页面");
			});
		}
	}
})
